// 分页查询
function serch_bean(pageNum){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();
    var pageN = pageNum;
    $.get("/myspringboot/selectSupervisoryBodyAll",{map:all_val,pageNum:pageN},function(pageInfo){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        var result = pageInfo.data.list;
        yibu(pageInfo.data.pages,pageInfo.data.pageNum);
        for (var i = 0; i < result.length; i++) {    //循环遍历
            aaaa += "<tr><td>"+result[i].sbId+"</td><td>" + result[i].sbName + "</td><td>" + result[i].sbAdress +"</td>" +
                "<td>" + result[i].sbPhone + "</td><td>" + result[i].sbContacts + "</td><td>" + result[i].sbFax +"</td>" +
                "<td>" + result[i].sbEmail+ "</td><td>" + result[i].sbUrl+ "</td></tr>";
            $("#checkOne").append(aaaa);
            aaaa = "";
        }
    })
}
//多条件查询
function serch_bean1(){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();

    $.get("/myspringboot/selectSupervisoryBody",all_val,function(result){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        for (var i = 0; i < result.length; i++) {    //循环遍历
            aaaa += "<tr><td>"+result[i].sbId+"</td>" + "<td>" + result[i].sbName + "</td><td>" + result[i].sbAdress +"</td>" +
                "<td>" + result[i].sbPhone + "</td><td>" + result[i].sbContacts + "</td><td>" + result[i].sbFax +"</td>" +
                "<td>" + result[i].sbEmail+ "</td><td>" + result[i].sbUrl+ "</td></tr>";
            $("#checkOne").append(aaaa);
            aaaa = "";
        }
    })

}